home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Puzzle / cymin.swf / scripts / DefineButton2_51 / BUTTONCONDACTION on(release).as
Text File  |  2006-05-23  |  665b  |  41 lines

  1. on(release){
  2.    if(right < count)
  3.    {
  4.       if(eval("pattern" add right) == "0")
  5.       {
  6.          right += "1";
  7.       }
  8.       else
  9.       {
  10.          gotoAndPlay(53);
  11.       }
  12.    }
  13.    else if(eval("pattern" add count) == "0")
  14.    {
  15.       next = eval("pattern" add "1");
  16.       x = "2";
  17.       right = "1";
  18.       count += "1";
  19.       if(next == "0")
  20.       {
  21.          gotoAndPlay(37);
  22.       }
  23.       if(next == "1")
  24.       {
  25.          gotoAndPlay(41);
  26.       }
  27.       if(next == "2")
  28.       {
  29.          gotoAndPlay(45);
  30.       }
  31.       if(next == "3")
  32.       {
  33.          gotoAndPlay(49);
  34.       }
  35.    }
  36.    else
  37.    {
  38.       gotoAndPlay(53);
  39.    }
  40. }
  41.